new Vue({
    el: "#content",
    data: {
        article: {}
    },
    methods: {
        addArticle: function () {
            axios({
                method: "post",
                url: "/article/add",
                data: this.article
            }).then(res => {
                layer.msg(res.data.message);
                if (res.data.flag) {
                    setInterval(() => {
                        location.href = "/html/article.html";
                    }, 1000);
                }
            });
        }
    }
})